package sfms;
import javax.swing.JOptionPane;

/**
 * Main class
 * @author Taylor
 */
public class SFMS {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        if (args.length < 1) {
            JOptionPane.showMessageDialog(null, "You must specify a database location.",
                "Error", JOptionPane.ERROR_MESSAGE);
            System.exit(1);
        }

        sfms.util.DBLocation.setLocation(args[0]);
        sfms.model.Model model = new sfms.model.Model();
        System.out.println(model.connect());

        sfms.controller.Login controller = new sfms.controller.Login(model);
        controller.show();
    }
}
